<?php

namespace Admin\Models\Components;

use Hirudo\Models\Components\Sql\SimpleSqlComponent;

/**
 * Description of PluginsComponent
 *
 * @author Elkin José
 */
class PluginsComponent extends SimpleSqlComponent {
    public function getAll() {
        return $this->getQuery()
                        ->select()
                        ->from(array("dusb_plugins"))
                        ->get()
                        ->resultList();
    }

    public function add($name) {
        $this->getQuery()->insertInto("people")
                ->set("name", $name)
                ->commit();
    }
}

?>